<?php

namespace Modules\Order\Entities;

use Modules\Order\Entities\Order;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class OrderGoods extends Model
{
    use SoftDeletes;

    protected $fillable = ['order_id', 'merchant_id', 'goods_id', 'name', 'attributes', 'quantity', 'price', 'market_price', 'brand', 'brief', 'desc', 'thumb', 'type'];

    public function order()
    {
        return $this->belongsTo(Order::class);
    }
}
